﻿using System.IO;
using Letspirate.Common.Infrastructure;

namespace Letspirate.MapEngine.Tests.Unit.Stubs
{
    internal class StreamControllerStub : IStreamController
    {
        public Stream Stream { get; protected set; }
        public string CurrentPath { get; protected set; }

        #region Implementation of IStreamController

        public Stream CreateStream(string path)
        {
            CurrentPath = path;
            Stream = new StreamStub();
            return Stream;
        }

        public Stream OpenStream(string path)
        {
            CurrentPath = path;
            Stream = new StreamStub();
            return Stream;
        }

        #endregion
    }
}
